<div class="form">
	<h2>
	<?php echo $familia->parentezco; ?>
		:
	</h2>
	
	
	<?php echo $form->errorSummary($familia); ?>
	
    <div class="row">
        <?php echo $form->LabelEx($familia,"[$i]nombres"); ?>
        <?php echo $form->TextField($familia,"[$i]nombres"); ?>
        <?php echo $form->error($familia,"[$i]nombres"); ?>
    </div>

    <div class="row">
        <?php echo $form->LabelEx($familia,"[$i]apellido_paterno"); ?>
        <?php echo $form->TextField($familia,"[$i]apellido_paterno"); ?>
        <?php echo $form->error($familia,"[$i]apellido_paterno"); ?>
    </div>

    <div class="row">
        <?php echo $form->LabelEx($familia,"[$i]apellido_materno"); ?>
        <?php echo $form->TextField($familia,"[$i]apellido_materno"); ?>
        <?php echo $form->error($familia,"[$i]apellido_materno"); ?>
    </div>

    <div class="row">
        <?php echo $form->LabelEx($familia,"[$i]direccion"); ?>
        <?php echo $form->TextField($familia,"[$i]direccion"); ?>
        <?php echo $form->error($familia,"[$i]direccion"); ?>
    </div>

    <div class="row">
        <?php echo $form->LabelEx($familia,"[$i]telefono"); ?>
        <?php echo $form->TextField($familia,"[$i]telefono"); ?>
        <?php echo $form->error($familia,"[$i]telefono"); ?>
    </div>

    <div class="row">
        <?php echo $form->LabelEx($familia,"[$i]run"); ?>
        <?php $this->widget('CMaskedTextField',array(
		'model'=>$familia,
		'attribute'=>"[$i]run",
		    'name'=>"[$i]run",
		    'mask'=>'99.999.999-*',
		    'htmlOptions'=>array(
		        'size'=>12
		),
		));?>
        <?php echo $form->error($familia,"[$i]run"); ?>
    </div>

    <div class="row">
        <?php echo $form->LabelEx($familia,"[$i]nivel_estudios"); ?>
        <?php echo $form->TextField($familia,"[$i]nivel_estudios"); ?>
        <?php echo $form->error($familia,"[$i]nivel_estudios"); ?>
    </div>

    <div class="row">
        <?php echo $form->LabelEx($familia,"[$i]actividad"); ?>
        <?php echo $form->TextField($familia,"[$i]actividad"); ?>
        <?php echo $form->error($familia,"[$i]actividad"); ?>
    </div>

    <div class="row">
        <?php echo $form->LabelEx($familia,"[$i]parentezco"); ?>
        <?php echo $form->TextField($familia,"[$i]parentezco"); ?>
        <?php echo $form->error($familia,"[$i]parentezco"); ?>
    </div>

    <div class="row">
        <?php echo $form->LabelEx($familia,"[$i]email"); ?>
        <?php echo $form->TextField($familia,"[$i]email"); ?>
        <?php echo $form->error($familia,"[$i]email"); ?>
    </div>

    <div class="row">
        <?php echo $form->LabelEx($familia,"[$i]apoderado"); ?>
      	<?php echo $form->DropDownList($familia,"[$i]apoderado",array(1=>"Si",0=>"No")); ?>
        <?php echo $form->error($familia,"[$i]apoderado"); ?>
    </div>
</div>
<!-- form -->
